package lab02.test06;

public class Ladder {
    //属性
    double topline;
    double baseline;
    double height;
    double area;

    public void getArea(){
        area=(topline+baseline)*height/2;
        System.out.println("梯形的面积为："+area);
    }
}
